package com.pro01.tracker.pojo;

import lombok.Data;

import java.sql.Timestamp;

@Data
public class User {
    private Long id;
    private String passkey;         // 用户唯一标识
    private String username;
    private String password;
    private String email;
    private String role;            // USER / ADMIN
    private String title;
    private String nicknameColor;
    private String avatarFrame;

    private Long credit;            // 贡献值
    private Float virtualRatio;     // 虚拟分享率
    private String level;           // 等级，比如 "新手"、"普通用户"

    private Integer uploadCount;    // 上传次数
    private Integer downloadCount;  // 下载次数

    private Long bonusCredit;       // 贡献值奖励
    private Integer bonusUpload;    // 上传次数奖励
    private Integer bonusDownload;  // 下载次数抵消

    private String status;          // ACTIVE / WARNED / BANNED
    private Timestamp createdAt;
    private Timestamp updatedAt;
}
